package cn.hyatt.auth.entity;

import cn.hyatt.core.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;

/**
 * 角色
 * @author hyatt
 */
@Getter
@Setter
@TableName(value = "system_role")
@Schema(name = "角色")
public class SystemRole extends BaseEntity {

    @NotNull
    @TableField(value = "name")
    @Schema(description = "角色名称")
    private String name;

    @NotNull
    @TableField(value = "code")
    @Schema(description = "角色编码")
    private String code;


    @TableField(value = "remark")
    @Schema(description = "备注")
    private String remark;
}
